// *****************************************************
// Aitrox Information Technology
// http://www.proxima-ai.com
// Copyright 2021 Aitrox. All rights reserved.
//
// Filename: export.go
// CreateDate: 2023-05-05
// Author: zjp
// Description: 获取甲状腺病灶数据
// ******************************************************
package dao

import "usplatformserver/internal/model/export"

/**
 * @brief 获取甲状腺导出数据
 * @param patientIds-患者ID集合
 * @return 病灶数据集，错误信息
 */
func (d *Dao) GetThyroidExportData(patientIds string) ([]*export.ThyroidNidusInfo, error) {
	return export.GetThyroidExportData(d.engine, patientIds)
}

/**
 * @brief 获取甲状腺AI导出数据
 * @param patientIds-患者ID集合
 * @return 病灶数据集，错误信息
 */
func (d *Dao) GetThyroidExportDataAi(patientIds string) ([]*export.ThyroidNidusInfo, error) {
	return export.GetThyroidExportDataAi(d.engine, patientIds)
}

/**
 * @brief 获取乳腺导出数据
 * @param patientIds-患者ID集合
 * @return 病灶数据集，错误信息
 */
func (d *Dao) GetBreastExportData(patientIds string) ([]*export.BreastNidusInfo, error) {
	return export.GetBreastExportData(d.engine, patientIds)
}

/**
 * @brief 获取乳腺AI导出数据
 * @param patientIds-患者ID集合
 * @return 病灶数据集，错误信息
 */
func (d *Dao) GetBreastExportDataAi(patientIds string) ([]*export.BreastNidusInfo, error) {
	return export.GetBreastExportDataAi(d.engine, patientIds)
}

/**
 * @brief 获取心脏导出数据
 * @param patientIds-患者ID集合
 * @return 导出数据集，错误信息
 */
func (d *Dao) GetHeartExportData(patientIds string) ([]*export.HeartMeasureInfo, error) {
	return export.GetHeartExportData(d.engine, patientIds)
}

/**
 * @brief 获取客户端使用率数据
 * @param patientIds-患者ID集合
 * @return 导出数据集，错误信息
 */
func (d *Dao) GetUsageExportData(patientIds string) ([]*export.ClientUsageStatistics, error) {
	return export.GetUsageExportData(d.engine, patientIds)
}

/**
 * @brief 获取颈动脉导出数据
 * @param patientIds-患者ID集合
 * @return 病灶数据集，错误信息
 */
func (d *Dao) GetCarotidExportData(patientIds string) ([]*export.CarotidNidusInfo, error) {
	return export.GetCarotidExportData(d.engine, patientIds)
}

/**
 * @brief 获取颈动脉AI导出数据
 * @param patientIds-患者ID集合
 * @return 病灶数据集，错误信息
 */
func (d *Dao) GetCarotidExportDataAi(patientIds string) ([]*export.CarotidNidusInfo, error) {
	return export.GetCarotidExportDataAi(d.engine, patientIds)
}

/**
 * @brief 获取心脏导出数据
 * @param beginTime-起始时间
 * @param endTime-截止时间
 * @return 数据集，错误信息
 */
func (d *Dao) GetHeartMeasureData(beginTime, endTime string) ([]*export.HeartMeasureData, error) {
	return export.GetHeartMeasureData(d.engine, beginTime, endTime, "t_cardiac_info")
}

/**
 * @brief 获取心脏AI导出数据
 * @param beginTime-起始时间
 * @param endTime-截止时间
 * @return 数据集，错误信息
 */
func (d *Dao) GetHeartMeasureDataAi(beginTime, endTime string) ([]*export.HeartMeasureData, error) {
	return export.GetHeartMeasureData(d.engine, beginTime, endTime, "t_cardiac_info_ai")
}

/**
 * @brief 获取腔室导出数据
 * @param beginTime-起始时间
 * @param endTime-截止时间
 * @return 数据集，错误信息
 */
func (d *Dao) GetChamberMeasureData(beginTime, endTime string) ([]*export.ChamberMeasureData, error) {
	return export.GetChamberMeasureData(d.engine, beginTime, endTime, "t_chamber_info")
}

/**
 * @brief 获取腔室AI室导出数据
 * @param beginTime-起始时间
 * @param endTime-截止时间
 * @return 数据集，错误信息
 */
func (d *Dao) GetChamberMeasureDataAi(beginTime, endTime string) ([]*export.ChamberMeasureData, error) {
	return export.GetChamberMeasureData(d.engine, beginTime, endTime, "t_chamber_info_ai")
}

/**
 * @brief 获取频谱导出数据
 * @param beginTime-起始时间
 * @param endTime-截止时间
 * @return 数据集，错误信息
 */
func (d *Dao) GetWaveformMeasureData(beginTime, endTime string) ([]*export.WaveformMeasureData, error) {
	return export.GetWaveformMeasureData(d.engine, beginTime, endTime, "t_waveform_info")
}

/**
 * @brief 获取频谱AI室导出数据
 * @param beginTime-起始时间
 * @param endTime-截止时间
 * @return 数据集，错误信息
 */
func (d *Dao) GetWaveformMeasureDataAi(beginTime, endTime string) ([]*export.WaveformMeasureData, error) {
	return export.GetWaveformMeasureData(d.engine, beginTime, endTime, "t_waveform_info_ai")
}
